package com.leyou.trade.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

@Data
@Document("#{@collectionNameBuilder.build()}")
public class carts {
    @Id
    @JsonIgnore
    private String id;
    @JsonIgnore
    private long userId;
    private long skuId;
    private String title;
    private String image;
    private long price;
    private Integer num;
    private String spec;
    private Date updateDate;
}
